package com.didi.gulimall.seckill.service;

import com.didi.gulimall.common.to.mq.SeckillOrderTo;
import com.didi.gulimall.common.utils.R;

/**
 * @Author 10626
 * @Create 2021/6/14 17:53
 */
public interface SecKillService {
    R getSecKill();

    R getSecKillBySkuId(Long skuId);


    SeckillOrderTo skill(String sessionId, String key, Integer num, Long skuId);

    void rollbackOrder(SeckillOrderTo seckillOrderTo);

    SeckillOrderTo getSecKillOrder(String orderSn, Long memberId);

    R getSecKillMemberList();

}
